﻿@page "/"
@inject Csla.Blazor.State.StateManager StateManager

<PageTitle>Home</PageTitle>

<h1>Hello, CSLA developer!</h1>

<p>Welcome to your new CSLA Blazor app.</p>

@code
{
    protected override async Task OnInitializedAsync()
    {
        // Every page _must_ initialize the state manager
        await StateManager.InitializeAsync();
    }
}